<?php
/** 
 * @package ShareThisBar Plugin for Joomla! 1.5
 * @subpackage Form Element Stbspacer
 * @version $Id: sharethisbar.php 3.5 2012-12-29 17:00:33Z Dusanka $
 * @author Dusanka Ilic
 * @copyright (C) 2012 - Dusanka Ilic, All rights reserved.
 * @authorEmail: gog27.mail@gmail.com
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html, see LICENSE.txt
**/

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
 * Renders a spacer element
 *
 */

class JElementStbSpacer extends JElement
{
	/**
	* Element name
	*
	* @access	protected
	* @var		string
	*/
	var	$_name = 'StbSpacer';

	function fetchTooltip($label, $description, &$node, $control_name, $name) {
		return '&nbsp;';
	} 

	function fetchElement($name, $value, &$node, $control_name)
	{       
		if ($value) {
                  return '<div class="stbspace">'.JText::_($value).'<div>';  
		} else {
		  return '<hr class="stbhr"/>';
		}
	}
}
